<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport"
			content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
		<title>
			<%= htmlWebpackPlugin.options.title %>
		</title>
		<script>
			document.addEventListener('DOMContentLoaded', function() {
				document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
			})
		</script>
		<link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" />
		<link rel="stylesheet" href="<%= BASE_URL %>static/index.css" />
	</head>
	<body>

		<script type="text/javascript">
			window._AMapSecurityConfig = {
				securityJsCode: '826989e2baf4475716259e9db8afc729',
			}
			// window._AMapSecurityConfig = {
			//         securityJsCode: '826989e2baf4475716259e9db8afc729'
			//           serviceHost:'txh5o.westts.cn/_AMapService',  
			//           // 例如 ：serviceHost:'http://1.1.1.1:80/_AMapService',
			//       }
		</script>
		<noscript>
			<strong>Please enable JavaScript to continue.</strong>
		</noscript>

		<!--引入高德地图JSAPI -->
		<!-- <script src="//webapi.amap.com/maps?v=1.4.13&key=451fccae7251b4ed8498743ef732d1fe"></script> -->
		<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=451fccae7251b4ed8498743ef732d1fe">
		</script>
		<!--引入UI组件库（1.0版本） -->
		<script src="//webapi.amap.com/ui/1.0/main.js"></script>
		<script type="text/javascript" src="https://a.amap.com/jsapi_demos/static/demo-center/js/jquery-1.11.1.min.js">
		</script>
		<script type="text/javascript" src="https://a.amap.com/jsapi_demos/static/demo-center/js/underscore-min.js">
		</script>
		<script type="text/javascript" src="https://a.amap.com/jsapi_demos/static/demo-center/js/backbone-min.js">
		</script>
		<!-- <script type="text/javascript"
			src="https://webapi.amap.com/maps?v=1.4.15&key=451fccae7251b4ed8498743ef732d1fe&plugin=AMap.Geocoder">
		</script> -->
		<script type="text/javascript" src='https://a.amap.com/jsapi_demos/static/demo-center/js/prety-json.js'>
		</script>
		<div id="app"><!--app-html--></div>
		<script type="module" src="/main.js"></script>

	</body>
</html>
<script>
	// if (typeof window.AMap === 'function') {
	// 	this.initAmap()
	// } else {
	// 	const script = document.createElement('script')
	// 	window._AMapSecurityConfig = {
	// 		securityJsCode: '8d1f456de87c857d9267554ac16640fb'
	// 	}
	// 	// 动态引入较大类库避免影响页面展示10
	// 	script.src = "https://webapi.amap.com/maps?v=1.4.15&key=451fccae7251b4ed8498743ef732d1fe&plugin=AMap.Geolocation"
	// 	script.onload = this.initAmap.bind(this)
	// 	document.head.appendChild(script)
	// 	console.log(script, "78747")
	// };
</script>